'use strict';

/**
 * @ngdoc function
 * @name appApp.controller:MainCtrl
 * @description
 * # MainCtrl
 * Controller of the appApp
 */
angular.module('appApp')
  .controller('IndexCtrl', function ($scope) {
    $scope.bannerInit = function(){
    	$scope.bannerSwiper = new Swiper ('.index-banner', {
		    // Optional parameters
		    loop: true,
		    autoplay: 3000,
		    // If we need pagination
		    pagination: '.banner-pagination',
		    paginationClickable: true
		  })
    }

    $scope.currentNews = 1;

    $scope.expressInit = function(){
    	$scope.express_list = [{
    		title:'专家预约',
    		icon: 'icon-zjyy'
    	},{
    		title:'在线咨询',
    		icon: 'icon-zxzx'
    	},{
    		title:'报告解读',
    		icon: 'icon-bgjd'
    	},{
    		title:'MDT会诊',
    		icon: 'icon-mdt'
    	},{
    		title:'术后护理',
    		icon: 'icon-shhl'
    	},{
    		title:'用药指南',
    		icon: 'icon-yyzn'
    	},{
    		title:'临床招募',
    		icon: 'icon-lczm'
    	},{
    		title:'慈善救助',
    		icon: 'icon-csjz'
    	}]
    }

    $scope.newsInit = function(){
    	$scope.news_list = [{
    		category:'放射诊断',
    		title:'发生放射性皮炎时，应该如何处理？',
    		time:'2017-06-13'
    	},{
    		category:'乳腺康复',
    		title:'术后功能锻炼应该什么时候开始？',
    		time:'2017-06-13'
    	},{
    		category:'放射诊断',
    		title:'放疗结束后还需要保护皮肤吗？',
    		time:'2017-06-13'
    	},{
    		category:'乳腺康复',
    		title:'手术前后饮食有哪些需要注意的？',
    		time:'2017-06-13'
    	},{
    		category:'临床营养',
    		title:'具有抗癌作用的植物性食物有哪些？',
    		time:'2017-06-13'
    	},{
    		category:'放射诊断',
    		title:'放疗时皮肤护理有哪些需要注意的？',
    		time:'2017-06-13'
    	}]
    }
    
  });
